<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://localhost:10000/js/jquery-1.11.3.min.js" type="text/javascript"></script>
    <script src="http://localhost:10000/js/user.js" type="text/javascript"></script>
</head>
<body>
<div style=" text-align: center;font-size: xx-small"><img width="50%" src="http://localhost:10000/image/2.jpg"></div>
<form action="http://localhost:10000/user/login.do" onsubmit="return userload()" >
    <div width="100%" align="center">
    <fieldset style="width:45%; height:180px;">
        <legend>IOTWMS</legend>
    <table style="text-align: center;margin: 0px auto;">
        <tr>
            <td>登录账号:</td>
            <td><input type="text" id="userId" name="userAccount"></td>
        </tr>
        <tr>
            <td>密码:</td>
            <td><input type="text" id="userPwd" name="userPwd"></td>
        </tr>
        <tr>
            <td>权限：</td>
            <td>
                <select name="permName" >
                    <option th:each="every:${session.wmspermissions}" th:text="${every.getPermName()}">管理员</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>验证码:</td>
            <td><input type="text" id="yzm" name="yzm"></td>
            <td><img id="img1" src="http://localhost:10000/user/getcode.do"/></td>
            <td><a href="#" id="change">换一张？</a></td>
        </tr>
        <tr>
            <td></td>
            <td><div id="tipyzm" style="color: red"></div></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <button type="submit" id="load" disabled >确定</button>
                <button type="reset">取消</button>
            </td>
        </tr>
    </table>
    </fieldset>
    </div>
</form>
</body>
</html>